// /* eslint-disable @typescript-eslint/no-explicit-any */
// /* eslint-disable react/display-name */
// import React from 'react';
// import { ModuleFactory } from '../factory';
// import { Constructor } from '../interfaces';

// export { Injection } from './common';

// export const connect = (options: Record<string, Constructor<any>>) => {
//     return (ChildNode: any) => {
//         return (props: Record<string, unknown>): React.ReactNode => {
//             const moduleKeys = Object.keys(options);
//             const targetProps: Record<string, unknown> = { ...props };
//             moduleKeys.forEach((key) => {
//                 targetProps[key] = ModuleFactory.create(options[key]);
//             });
//             return (
//                 <>
//                     <ChildNode {...targetProps} />
//                 </>
//             );
//         };
//     };
// };
